/**
 * 工作类
 * @author liaosh
 * @date 2022-10-18 22:39
 */
public class Work {
    /**
     * 当前时间
     */
    private Integer currentHour;

    /**
     * 工作是否完成
     */
    private Boolean workFinish;

    /**
     * 工作状态
     */
    private State currentWorkState;

    public Work() {
        currentWorkState = new ForenoonState();
    }

    public Integer getCurrentHour() {
        return currentHour;
    }

    public void setCurrentHour(Integer currentHour) {
        this.currentHour = currentHour;
    }

    public Boolean getWorkFinish() {
        return workFinish;
    }

    public void setWorkFinish(Boolean workFinish) {
        this.workFinish = workFinish;
    }

    public State getCurrentWorkState() {
        return currentWorkState;
    }

    public void setCurrentWorkState(State currentWorkState) {
        this.currentWorkState = currentWorkState;
    }

    public void writeProgram() {
        currentWorkState.writeProgram(this);
    }
}
